package com.onstar.cn.framework.mvp.base.core;

import com.onstar.cn.framework.mvp.base.IMVPScheduler;

import rx.Scheduler;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;


/**
 * Created by 7828wc on 2016/6/21.
 */
public class AppScheduler implements IMVPScheduler{
    @Override
    public Scheduler mainThread() {
        return AndroidSchedulers.mainThread();
    }

    @Override
    public Scheduler backgroundThread() {
        return Schedulers.io();
    }
}
